package com.rabbit.annotation;

import com.rabbit.constant.OperType;

import java.lang.annotation.*;

/**
 * <h1>在需要记录操作日志的方法上添加该注解</h1>
 *
 *  例1：@Cacheable(key = RedisKeyConstant.ALLOW_ACCESS, targetClass = AllowAccessDto.class)
 *            public List<AllowAccessDto> queryAllowAccessData() {
 *                return whiteListMapper.queryAllowAccessData();
 *            }
 *
 * @author zjw
 * @date 2022/2/8 9:23
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Log {

    /**
     * 模块名称
     */
     String name() default "";

    /**
     * 操作类型
     */
     OperType type() default OperType.OTHER;

}
